Use -mcx16 on x86 platforms only
authorAron Xu <aron@debian.org>
Tue, 2 Feb 2016 04:17:24 +0000 (12:17 +0800)
committerAron Xu <aron@debian.org>
Wed, 11 Jan 2017 06:49:15 +0000 (06:49 +0000)
Gbp-Pq: Name 0001-Use-mcx16-on-x86-platforms-only.patch

configure.ac

index 9d0eed5fe045ec28956478ed7f37aeaee3783733..e575895040d1400a4b6e9cfdd76e7ffd028a2d4c 100644 (file)
@@ -1272,10 +1272,13 @@ CFLAGS="${__saved_CFLAGS}"
 AC_LANG_POP
 AC_SUBST(has_128bit_cas)
 
+case "$host_cpu" in
+    amd64|x86_64|i*86)
 AS_IF([test "x$has_128bit_cas" = "x1"], [
   TS_ADDTO(CFLAGS, [-mcx16])
   TS_ADDTO(CXXFLAGS, [-mcx16])
 ])
+esac
 
 # Check for POSIX capabilities library.
 # If we don't find it, disable checking for header.